package xyz.yuanjilu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import xyz.yuanjilu.dao.WebSiteDao;
import xyz.yuanjilu.entity.WebSiteEntity;
import xyz.yuanjilu.service.WebSiteService;



@Service("webSiteService")
public class WebSiteServiceImpl implements WebSiteService {
	@Autowired
	private WebSiteDao webSiteDao;
	
	@Override
	public WebSiteEntity queryObject(Long id){
		return webSiteDao.queryObject(id);
	}
	
	@Override
	public List<WebSiteEntity> queryList(Map<String, Object> map){
		return webSiteDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return webSiteDao.queryTotal(map);
	}
	
	@Override
	public void save(WebSiteEntity webSite){
		webSiteDao.save(webSite);
	}
	
	@Override
	public void update(WebSiteEntity webSite){
		webSiteDao.update(webSite);
	}
	
	@Override
	public void delete(Long id){
		webSiteDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		webSiteDao.deleteBatch(ids);
	}
	
}
